<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
         Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('hd_name') -> comment('用户名');
            $table->string('hd_pass',255) -> comment('密码');
            $table->string('hd_sex') -> comment('性别,1女,2男');
            $table->string('hd_email') -> comment('邮箱');
            $table->string('hd_token') -> comment('用户找回密码的token值');
            $table->string('hd_phone') -> comment('手机号');
            $table->string('hd_status') -> comment('用户状态,1普通,2管理,3超级,默认1.');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('users');
    }
}
